﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH5_2103A.Shopping.TEntityFrame.IRepository
{
    /// <summary>
    /// C《Create》：添加仓储接口
    /// </summary>
    public interface ICreateRepository<TEntity> where TEntity : class
    {
        /// <summary>
        /// 添加一条数据
        /// </summary>
        /// <param name="entity"></param>
        void Insert(TEntity entity);

        /// <summary>
        /// 添加多条数据（批量添加）
        /// </summary>
        /// <param name="entities"></param>
        void Insert(List<TEntity> entities);
    }
}
